some work on the validator but not functioning yet