* trim username before submitting it for login
Merge pull request #1002 from cgolubi1/716_username_trim

* trim username before submitting it for login