Correctly use the $state.params.sid for User.sid