Application login is returning 400s and 500s when deployed on vercel