made ui react on server-side validation by submit-button