Fixing loginController