Fixed checkCmd

Fixed bug when not recoginizing user, no error is reported.