(mysql_rest.js)PUT request is working. Coded the POST request but it didn't work.

(Register.js) Added code for buttons, its not working that great.