fixing issue with periodic session validation