Trims username and passwords while logging in