error on url needs to be validated regardless of where it is read from
added in all the locations URL::parse is similiarly called
refactored todos to the standard.  refactored url parsing to 1 place in code