Basic form with validation and localstorage