I believe your problem is that you are comparing strings using '=='. Since a
string is an object, '==' compares if the references to the string are equal.
What you need to use is String.equals() as in :
if ( pass.equals( p ) ) .....
This will compare the contents and not the references. I hope this is clear.
p.s. for not equals you would put
if ( !pass.equals( p )) .....
[This message has been edited by tony hutcheson (edited March 20, 2001).]