Enabling client-side validation as weel as server-side error message rendering