Adding logic to display 'signed in as' or 'login or sign up' in the application view