Added past operation, visit and recommendation time validation and fixed
error messages for successful operations