Added sign in/out functionality