Fixed account management error

fixed error where devices would not load if there was an error