Submit form works properly and sends the calculated reference as params to show photographs