Add form verification in front-end by js