fix(controllers.js): relax backend URL validation to match frontend

Closes #1