diff --git a/config/config.js b/config/config.js
index 04327b8eb9177f14ff22602b61d2818bfa819012..bdfbd5a118df8df85d756cc618fcbf582d9ee274 100644
--- a/config/config.js
+++ b/config/config.js
@@ -1,7 +1,7 @@
 module.exports = {
   development: {
     app: {
-      hostname: 'm4lab.hft-stuttgart.de/account/',
+      hostname: 'm4lab.hft-stuttgart.de/account',
       name: 'User Account Management',
       hostname: 'm4lab.hft-stuttgart.de/account',
       port: process.env.PORT || 9989
diff --git a/routes/routes.js b/routes/routes.js
index b777a4d7fa174eaa58f588b177b1bfa065569a7d..d40900432d25a90674e524690325c1cca9fc60b2 100644
--- a/routes/routes.js
+++ b/routes/routes.js
@@ -394,6 +394,7 @@ module.exports = function (app, config, passport) {
   });
 
   app.post('/reset/:token', function(req, res) {
+    var newPwd = req.body.inputNewPwd  
     methods.checkUserToken(req.params.token, function(err, user){
       if (user) {
         // encrypt password