validation

Basic data validation before sending to the server to be saved.