fix registration bugs,switch to production backend