register server side validation