added before middleware validation
fixed double names of method