added readme for before_redirect