added set state in command login