added able login and logout