Fixed some faults in the config file and hacked a little on the reset
password function