fixed ticket #454: added condition on localaccount and user status