added checks for text inputs and url is there