add field param validate, will throw error when it's invalid