updated for login controller