Logout button works on all activities now.

Will need to refactor this later into a utilities file.