Redirect to login.php if not logged in.
Minor fixes.