app.js fixed req and res for singup and login