fixed bug on login bcrypt pswd