Respects Devise's strip_whitespace_keys setting

Use Devise's .find_first_by_auth_conditions method instead of .where to find the record