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