Remove first page or login page to deal with Android back button

Remove first page or login page to deal with Android back button

In my jquery mobile app (Cordova), I have the index.html that is basically artwork. Depending on if the user has logged in or not, they are sent to one of two pages via changePage. The problem I have is the dumb back button on Android devices. It takes you back to that first default index.html. On iOS i can control it by not adding a back button to the home page. Does anyone have any suggestions? I've tried variations of the changeHash but the problem lies in the index.html because it is loaded by default first and not via changePage. This is a multi page application. Any suggestions or ideas would be much appreciated. I've searched the internets for a few days and come up with nothing.