Fixes error and success for task page