added user authentication to damas.js