still working on JS, error has something to do with validator