updated API and app.js'
ls
updated api
updated doLogin with error array
login cleanup