refactor update email to model instead of controller