Fix auth and undefined var errors