Added logout function to UserController
Revert "Added logout to UserController"

This reverts commit fd9009f8f73df6170ca4e51757d61348683d7e7a.
Revert "Revert "Added logout to UserController""

This reverts commit 74b686f5cbe4674c96916291b95822d304f40c21.