added validation to projects controller