add validation move check_uri method to base_controller