Refactor instance variable out of support method register_user

Signed-off-by: Bebe Peng <bebepeng@gmail.com>