Fixed login dialog

Login dialog should now work (although I have only done basic testing).
Saves the password as a .scrote and loads ok. Now trying to get the pull
from db working for the task list