bugfix validate method getting wrong parameters