adding refresh flow validation