fix a few bugs regarding composer dependency, login exception handling and the logout method