added query to get user by email