fixed a bug on url validation and added title validation