enhanced front-end form validation and added xml entity recognition