refactor the user activation API/view