def validate_email(self, email): if not User.check_email(email.data): raise ValidationError('No Account Exists for that Email')
def validate_email(self, email): if User.check_email(email.data): raise ValidationError('That Email Has Been Taken')