refactored and finished population, but need to fix routes to accept only one POST request