Add client side changes for auth (apparently got missed in previous commit)