Added scrolling to top of the page when displaying an error message