Refactor password recover, email set, profile get/set