changed to make form validation work