Refactors routes and validation.
Moves logger to util folder