added test to check login with correct credentials. Fixed routesSpec.js