Solves problem in validation