Lock login button just before doLogin()

Don't lock it if username and/or password is empty
Merge pull request #76 from dewick/fix_locking_login

Lock login button just before doLogin()