Get departments list from API to populate login page