correction of the error in LoginController