Added validator_handler and template for upload_handler