Validation Changes

changes for validating form fields before submitting details.