Update login.js

Updated for the Lab2 assignment