changed name of validation function