back button issue hadle for invalid page scenario.