Fix login check bug. Add market feature