check if the formual is validated