implemented base authentication system

the start, stuff still needs to be done but now largely depends on the usermodel