Bug on user registration