added custom parameter and validation

- added validation