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