Fix bug in LoginForm