Add profile logout function