Adding logic to display 'Signed in as' or 'Log or Sign up' in the application view