changed back button to cancel on registration