adds a validation to name and default to active
helpful error message when mongoose gives an error