Adding logic to display 'Signed in as' or 'Login or Signup' in the application view