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