Validating route form on submit