Change need condition in validate