how to properly set a secured firebase rules I used the following code in php to insert records into Realtime firebase and its working fine.