Moved code to validate data into separate function/file: validate() in "resources/validate.py".