login controller cleanup.