Cleaning loging/logout affair