implemented lock account feature