sinon in loginSpec