Made some error checks in the Admin class
Merge pull request #11 from Stefan101/AdminFunc

Made some error checks in the Admin class