Added error logging to the home application