Added sign in and out functionality