Fix on user registration