Implemented loggin-out from the application