mods to login controller