add validations for required and unique