Added sign in and log out functionality