Finished validation

tested loops