users.js with some logic