Some fixes and AuthComponent Implementation