validate email in controller