changed logout to post.