First we should check the session. If the user already logged in.
otherwise user redirect to login page.