Added cycling Validation function. correction of a few bugs about the
back button.