Fixed authentication bug which prevent users from signing out