implement validators functionality and check for duplicate args