Fixed bug in validate method