Function parameters corrected in login.js