.ftl js register validation