added php validation