fix initial select query was only looking for user email not username or geritname