Added validation for wrong password entry when logging in.