login controller upgraded