Added tbe logic to check the URL provided by the user.

Signed-off-by: Gabriela Navarro <navarro1703@gmail.com>