added a check to the project model for deadline