Add validation for required fields