Fix registration empty user_id bug