Fix Google auth bypass, sorting logic, and other optimizations
