refine the check function
remove onfocus out