make sure all fields are filled