allow the state to be reused for log in