I recommend you to write the code in the backend in the future so that you can offer higher security to your members.