Adding logic to dispaly 'Signed in as' or 'login or sign up' in the application view