Validation Changes

Changes for validating form fields before submitting.