Fixed issue with clicking the log out button
additional permission scenarios