The error "UserDetailsService returned null, which is an interface contract violation" is displayed when the database service is stopped and MC cannot verify the user credentials. Make sure that the database service is started before starting the MC service.