added validation after setting validation method