Gray out and disabled login button if incomplete credentials
Extracted trimming to common method

Also added accessors for getting trimmed versions of user name and password.
Merge pull request #73 from montehurd/disableLoginIfNoCredentials

Gray out and disabled login button if incomplete credentials