I am trying to validate a form and want to check whether fields are empty. And if more than one fields are empty it will show error for only the first one of them