trim username and password