clean url in when posting to server
added a bridge unique id and populate on discovery
added error type codes and IsValidUser function