Finished validation function. Added thumbnail name in download