[BUG BASH] Errors when fields are empty are incorrectly displayed