changed format of validate