Form validation and data storage API