switch sign-in and sign-up in public index template