Skip to a page condition not working