1. Added hostname validatation
2. Added default action and controller to url
3. changed test accordingly