update to login controller