implemented account locking and related tests
added feature test for locked account login