fix logout, addphoto