solving validation