errorchecks in doctor & client login