Fix authentication module