Fixes sign out button bug and corrects JS pipeline