email registration now fully working