Adding logic to display 'SIgned in as' or 'Login or Sign up' in the application view