adds modal for 'login', 'logout' and 'add new user'. pushes new user to server, and checks login user. stores token and userdata in local db