download fixed

added validation check