fix for http://wordpress.org/support/topic/registration-not-working-5, see also issue #99