diff --git a/TugasBesar2_2017/WebApp/src/main/webapp/js/converse.js b/TugasBesar2_2017/WebApp/src/main/webapp/js/converse.js
index 2088c8b098e7be6b51d1b961cdd6c26cb9164989..fe413ebd4e642760c809272c7748fb88665c394d 100644
--- a/TugasBesar2_2017/WebApp/src/main/webapp/js/converse.js
+++ b/TugasBesar2_2017/WebApp/src/main/webapp/js/converse.js
@@ -69,6 +69,15 @@ let converse = function ($http) {
   }
 
   class User extends Account {
+    async checkAsync (id) {
+      try {
+        await $http.get(`${apiUrl}/driver/${id}`)
+        return true
+      } catch (e) {
+        return false
+      }
+    }
+
     pickAsync (id) {
       let data = JSON.stringify({
         'user_id': id