error checks when entering address