WIP on registration refresh

Added first check for registration expiration.