added Post update endpoint
added foreign key for user on post model