Made it possible to redirect after the validation check of the form