check for syntactically correct shaastra id;