bugfix on email sending after registration