add prevent default function
check field