newPost and logout