How to create a form of online data validation