added form validation for updating settings