added server-side validation
added server-side validation