While redirect to the page with error msg, add #id_of_form_or_div
in your url.
Add id to your form or div which containing the form. If you add their id in url, then page will move to that particular section.
For example, You have id for footer as footer
. Then you url will be
www.domain.com/index.php#footer