Fix debug code
Fix user registration bug