fixed the index action in the user controller