Bug fix in login form