It would be much easier to read your code if it was in the phpbb PHP tag instead of the quote tag. And if the different lines had some tabbing to help brake it up a bit.
A few tips and one problems
First the problem. session_start() can never be anything but the absolute first line of all code. Nothing not HTML not php not javascrip, nothing can be proccessed before it.
<?php
session_start();
//all code HTML Everything below here
?>
And if login is an include on nother page it must be included in the very first line or the session_start() moved to that pages first line.
<?php
include('login.php');
// all code below here
?>
in your add_content.php page
else {
// do nothing
}
If that is empty just delete the whole else statement.
in your login script this
else {
if (isset($_POST['submitted']))
could be
elseif (isset($_POST['submitted']))
Also in 2 places you have errors[] set. Shouldn't it be $errors[].
I hope you are testing as you go because if you are and missed the above mistakes something is worng. And if you are not testing your code as you go your bound for lots of little errors plaguing you and you will be looking though monstorous amounts of code you have to find them. Verses if you test as you go you can find the mistakes based on what you just changed previous to the error.