Added /publisher context when saving file path in greg
Added validation to the api endpoints