Changes to error type logic, customer present indicator

1. made error type logic use a map instead of  method call inside for
loop
2. brought the customer present installation badge logic to the server
side,