v1rc2 - Catches if user puts in wrong host (ip adress host can not contain http or https) and regexp checks if username starts or ends with whitespace which is probably and error. Makes sure that port is just a number.