User is now redirect to sign-in page after activation. Also removed some unreachable functions.