Added form validation to registration form but error in redirection url