Fix bug in login form