added null value allowance for validation