Add bootstrapValidator
modify some templates.