Fixed issue logout when "Take New Photo" was selected