Update login.js

add a model with user and password