fix the readonly logic for the email input field