fixed required validator accepts int 0 and string 0