fixed bug (program wont work and stays at validating)