implemented simple autorization and logout