I checked my condition and if statement and should be correct since , If there is value for both fields from user , the first condition is executed and show alert "firs