Actually the intermediary method was not satisfactory so the client side does the check now.