logout and edit profile works