Added validation to input address