Added AuthenticationManager to logic