Check valid bug fixed
create moved to js