my redirect is conditions not working