Reconfigruing login

Changed Auth to new Cake framework compatibillaty