fixed bugs in validation resource