Fix a bug on generating user_slug in user registration