validating values on load