Enhanced users#show to respond to requests for JSON and bug in index