fixed new user registration bug