adding that logic to display login or sign up on all pages