Fixed bug in auth
Doc changed