url validation using rails uri not using regex