Added validation rules to the registration so user and email are unique