changed PostFormService to a factory