Updated CreateNewAccount to handle locked error