fix bug in email notifications; allow both get and post for registration APIs