Altered validation method to accept array