checks validation