add front-end field validation