Adds function to check superuser status

also adds login include_once for database
Updates create course with superuser check