Added logout function.

Added logout function.
Little fix