fixed errors in login form