anishek/ashwin returning value from validate method. (Seems wierd that type conversion is happening in validate)