Fix POST method for project creation + refactoring