added lock and unlock feature in identity management