fixed authentication bug

fixed authentication bug