re-implemented back button suppport and login correctly deletes
sharedpreferences stuff