fixed few mistakes in login