Authentication fixes and updates