Validating file extension and removing celery task