Check for invalid command type instead of checking for null object
Add getter and setter for searchEndDate