added logic to display to user if it is signed in or to sign in if not