checkUserExist function development