Louis Tomlinson Performs on 'The X Factor' Just Days After His Mother's Death