Thanks chromatic--invaluable example. I tried it and worked like a charm. And I get what you've done, with the exception of the $class variable. Why is it there, where does it get it's value, and what does it return? Also, it seems like the $email in the error string really will never have a value...right?