Lock login button just before doLogin()

Don't lock it if username and/or password is empty