var ForgotValidator = Ember.Object.create({ validate: function (model) { var data = model.getProperties('email'), validationErrors = []; if (!validator.isEmail(data.email)) { validationErrors.push('Invalid Email'); } return validationErrors; } }); export default ForgotValidator;