Added server-side form validation