added validations for projects and tasks