Implementing app.definePage() and created a Login page with it.
Redirecting user from homepage to browse page if already logged in. And also implemented the logout page.