Fix attribute error causing unprocessable entity error
Fix routes