fixed required validtor allowed int 0 and string 0
added test for required validtor
added test for required validtor