Fix for bug 918966

Removing constraints from routes and adding regex checks in controllers