Added test cases. \n
Refined code for validation. \n
Cleaned up URLs.