added validations to the form fields and created a partial