finished basic assign functionality in todo.php