Better validations using mongoose libraries