def is_email_valid(self, email_field): userdata = UserData() return False if userdata.find_by_prop("email", email_field) else True
def is_username_valid(self, username_field): userdata = UserData() return False if userdata.find_by_prop("username", username_field) else True