trim username and password for whitespace in login process