Added Log Out and Edit Profile functionality