Enable CORS on API
Fix login function in Login controller