changed authentication schema