fix the loginController a little