removed some unnecessary lines
removed some unneeded code
manual password sync seems to work