added logic to display whether user is signed in