Adds index and show action for user

Don't you want to specify what's the error code?
I'm not sure if that's what you've doing for other controllers and actions