implemented basic AuthenticationManager