little issue with validate