Add some validation functions, remember form inputs