Implement server-side validation