Fixed the profile edit page and the log-in status after activating the account.