#4276 added logged in status and log out feature