Login logout functionality implemented