Fixed the case when all fields are left empty and confirm is clicked: this now produces a 'wrong input' message and resets the fields.