login and logout added

Authentication also added