added form validation for customer registration