added account activate function