Checking session and redirecting...