Fixed issue with user registration script.