set UserId field in Post object upon creation