the system can now correctly check the values that the user enters and enable/disable the search button depending on it