added validations to the form, and styling to error handling