Passsword check

Is there any easy way to perform a password check on a password field?I have fields:'login name:''password:'and a button 'login'. I want this button to login only if the password is correct (this works) but display an error message when the password is incorrect...

Discussions have been disabled for this post