fix bugs of the login interface