Added condition to prevent setting active account to the same account
and resetting everything again.