Fixed email and length filters to handle non-string inputs