one more validation function was added