rewrote login.js to support forgot, login and create views