moved the blank url error check before the valid domain error check