Fix authentication issues and ensure password is updated