Fix errors in LoginControl