Corrected user retrieving query in getUserByEmail()