add custom validation