validation for production server mode.