fixed depreciated api endpoint references and some clean-up to get login working