add some code to new post
add user authentication