updated authentication module