Added function to add custom validators