added states for home, login and signup in app.js