why not define these rules using the model validation library?e.g. the same as https://github.com/balanced/balanced-dashboard/blob/master/app/models/login.js#L6