Added server-side fields validation.