javascript code to not allow the page to load without login
<p>I have coded a login page. If the Login credentials are correct I have to redirect the page to another page. </p>

<p>If I copy the URL/path of home page and paste in address bar it shouldn't load. It must be redirected to Login page.</p>
