Fixed Login Validation Bug