refactor user action
refactor reg action