fixes for authentication module