Add authstate getter and setter