Add user logout logic and revised post.