added unregister device method to fire on logout