add checks for valid url and username