Add user index JSON path; fix messages controller