functionality to create posts in current user