Added pre-submit client side form validation