Added checks for correctness of server configuration.