retreiving user state