Code updated to fix the success and failure message not being shown in the time sheet entry page.