creates relationship between posts and users
adds views and actions for posts controller