#507 : Redirect to unauthorized place in Carstore Example failed

This is a fix for #507 
I would 100% agree on a 200 lines function, but it's debatable for small ones. I changed it anyway since it seems to be a coding standard here.