[ticket/12261] Validate the redirect hidden field before submitting the form

PHPBB3-12261