Added secret key variable in config file
Finished coding registerdevice.php , users can register their devices through this script