LoginController key fixes