Correcting authentication bugs and fleshing out CLI client