Implemted a more flexible login system that can be added in whichever page and given any access level.