validation issue

commented out validation script
commit

changed validation foreach to if statement with ||; moved push and
calling of the function in an else statement
update