Added check for empty fields