updated app.js, created register page