First off use code blocks as it makes your code easier to understand like so
Code:
some
code goes
here
This would be a better start point
Code:
#!/bin/bash -e
read -p "User ID: " first
read -p "Password: " second
if [ X$first = X$second ];then
echo "Both Values are equal"
else
echo "Mismatch"
fi
Always start your scripts with the relevant #!
You must terminate an if/then/else block with fi.
In the text above the use of the 'X' added to the strings prevent errors at run time as both X's cancel, this way even if one string is undefined ( the user may have just hit 'return' without entering a value ) the script wont fall over.
doing an echo and then read is wasteful just use the -p option to read to set a prompt.
Using a '=' allows any sort of input '1234', 'abcd' 11a22b3c' etc, the '-eq' compares numbers only and will exit with an error if it encounters a non number.
Get a copy of the 'advanced bash scripting guide' which contrary to what the name says covers the basics of bash scripting as well as advanced topics.
I hope this will give you a start, try to do a bit more on your own and report back if you get stuck.