fixed a password valid message bug