Input validation added to assignment updating

mysql_real_escape_string(), preg_match(), and checkdate()