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