Added server-side validation.