changed register and swopped to pdo
login sessions work and added a few extra pages