form validation

form validation is working properly now