Fixes passwords retrieving
Adds logging + fixes minor bugs