added example for calling a rest method on the server (login) and then displaying a result if that call returned true.