added a userService to make AJAX request to the server to retrieve information