Fixing assignment of username and password, plus fixing SQL for changing password

TODO: Improve sanitizing of strings