Made password dialog work.
Added error message handling to login.html