adding logic to display 'signed in as' or 'Login or sign up' in the application view