fixed small bug in LoginController