Cleaned up the registration page some more and added better error messag...

...es. Also cleaned up some warnings in header.php