Xiao added input validation to modify.php