Create isValid method on user model.