add logout function to profile