validation for the add expense form (refactored)