More work on user registration
Fix strict mode error