Fixed bug in form_errors template

When the close button is inside a form and the enter key is pressed, then the submit event of the form is released.