Adding email required and unique field for the model and logic on the controller