Finished implementing basics of new authentication system