PUT and POST working