some changes in authentication module