Added validation and error stuff for projects.