Fixed bugs in the project Submit and Rename

- [FIXED] The 'privacy' and 'user' attributes were not being updated in
the JSON files.
- [FIXED] The name of the projects when submited were set to a random
name of other project (the last project in a loop).