Fix incorrect error rendering in user controller