Validation callback function was added