email will be stored as document if user exists