Fixed bug in Auth