Trim the password before comparison