validator now working