handle empty login

looks like the password field is the only one that causes the python
error when you try to login. trying to handle that.