fix anchor requirement and nullable of project.userId