Logout funcationallity added