validations for input 4-digit code page