Fixed bug in auth methods.