add point model validation into back-end and front-end