made login controller tests more maintainable and updated AD authentication