Created most of the auth system and added page bases