Fixed a couple bugs in the adduser-form

Also fixed a bug with the $rootfolder variable in the config-file