Password was not being checked when login in.