implementing search for users - saving state