fixed rails upgrade problem in user controller