working on persistence of user in the main activity. placed methods required on destruction of the activity.