refactored doesEmailExist method in users.server.controller