Solving validation errors