Fix wrong redirect in case of the form is incorrectle filled