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