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