Added headers and validate_absolute_path function