Got the middleware workingw with JSON
Testing the login functionality