Simplified the validation of integer arguments